#ifndef _STACK_H_
#define _STACK_H_

#include "list.h"

typedef struct {
    int len;
    list_node entries;
} stack_node;

struct entry {
    char * name;
    list_node node;
};

void stack_init(stack_node * stack);
void stack_push(stack_node * stack, struct entry * entry);
struct entry * stack_pop(stack_node * stack);

#endif /* _STACK_H_ */
